<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>PASTEEEEEEEEEEL =]</title>
    </h:head>
    <h:body>
        <h:form>
            <div>
                <img src="timmy.gif"/>
            </div>
            
            <div>Cliente:<h:inputText value="#{bean.cliente}"/>  </div>

            
            <div>Tipo: </div>
            
            <div>
                <h:selectManyCheckbox value="#{bean.escolhaTipo}">
                    <f:selectItems value="#{bean.tipo}" />
                </h:selectManyCheckbox>
            </div>
            <div>Você conheceu o pastel: </div>

            <div>
                <h:selectManyCheckbox value="#{bean.escolhaConheceu}">
                    <f:selectItems value="#{bean.conheceu}" />
                </h:selectManyCheckbox>
            </div>



            <div>
                <h:selectManyListbox value="#{bean.escolhaSabor}">
                    <f:selectItems value="#{bean.sabor}" />
                </h:selectManyListbox>
            </div>

            <div>
                <h:dataTable var="pastelx" value="#{pastel.pastel}">
                    <h:column>
                        
                        <f:facet name="header">
                            NOME                  
                        </f:facet>
                        #{pastelx.nome}
                    
                    </h:column>



                    <h:column>
                        
                        <f:facet name="header">
                            PREÇO                  
                        </f:facet>
                        
                        #{pastelx.valor}
                    </h:column>
                </h:dataTable>

            </div>


            <div><h:commandButton value="OK" action="#{bean.verificar}"/></div>
            <div><h:commandButton value="Limpar" action="#{bean.limparFormulario}"/></div>
            
            <div>Sua escolha foi:#{bean.cliente} #{bean.escolhaTipo} #{bean.escolhaConheceu} #{bean.escolhaSabor} </div>
        </h:form>

    </h:body>
</html>

